﻿using Eagles.Base.Configuration;
using Eagles.Interface.Configuration;
using Eagles.DomainService.Model.Config;

namespace Ealges.DomainService.Configuration
{
    public class EaglesConfig: IEaglesConfig
    {
        private readonly IConfigurationManager configuration;

        public EaglesConfig(IConfigurationManager configuration)
        {
            this.configuration = configuration;
        }

        public EaglesConfiguration EaglesConfiguration => configuration.GetConfiguration<EaglesConfiguration>();
    }
}